#ifndef SINGLE_APP_HPP
#define SINGLE_APP_HPP

class SingleAppGuard final {
    struct  MyData;
    MyData* const d;

    SingleAppGuard();
    ~SingleAppGuard();
public:
    static SingleAppGuard& Instance();

    bool CheckRunning() const;

    long InstancePID() const;

    void Wait() const;
};

#endif // SINGLE_APP_HPP
